package com.changgou.core.controller;

import com.changgou.entity.Result;

/**
 * @author liyipeng
 * @date 2021-06-27 11:09
 */
public interface IDeleteController<T> {

    /**
     * 根据id进行删除
     * @param id
     * @return
     */
    Result deleteById(Object id);

    /**
     * 根据条件进行删除
     * @param record
     * @return
     */
    Result delete(T record);


}
